package com.scm.biz.service._impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.scm.biz.bean.SysUserRole;
import com.scm.biz.dao.SysUserRoleDao;
import com.scm.biz.service.SysUserRoleService;
@Service
public class SysUserRoleServiceImpl implements SysUserRoleService {
	@Autowired
	SysUserRoleDao sysUserRoleDao;
	@Override
	public int insert(SysUserRole record) {
		return sysUserRoleDao.insert(record);
	}

	@Override
	public int deleteByUserId(int userId) {
		return sysUserRoleDao.deleteByUserId(userId);
	}

	@Override
	public List<SysUserRole> selectListByUserId(int id) {
		return sysUserRoleDao.selectListByUserId(id);
	}

}
